<?php
declare (strict_types = 1);

namespace app\api\model\v1;

use think\Model;

/**
 * @mixin \think\Model
 */
class SpecialAuditExam extends AppModel
{
    //

    //关联问卷
    public function exam(){
        return $this->belongsTo(Exam::class,'exam_id');
    }

    //关联网点
    public function unit(){
        return $this->belongsTo(Unit::class,'unit_id');
    }

    public function specialFile(){
        return $this->hasMany(SpecialAuditExamFile::class,'special_audit_exam_id');
    }
}
